package com.zhitong.money.services.api;

import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.Leave;

import java.util.List;
import java.util.Map;

public interface ILeaveService {

    public List<Leave> findAllLeave() throws Exception;

    public PageInfo findLeaveByPage(Map<String,Object> map) throws Exception;

    public List<Leave> findLeaveByMap(Map<String,Object> map) throws Exception;

    public List<Leave> findLeaveByTid(String tid) throws Exception;

    public Leave findLeaveById(String id) throws Exception;

    public void addLeave(Leave leave) throws Exception;

    public void updateLeave(Leave leave) throws Exception;

    public void updateSelfEnable(String id ,String enable) throws Exception;

    public void updateEnable(String id ,String enable) throws Exception;

    public void delLeave(String id) throws Exception;

    public void delLeavesByIds(List<String> ids) throws Exception;
}
